//show_player.sqf
#include "ACV_constantes.h"
#include "ACV_ID_main_dlg.h"

private ["_display","_btn_show","_show"];
disableserialization;

_display = uiNamespace getVariable "R3F_ACV_MAIN_DLG";
_btn_show = _display displayCtrl ACV_DLG_ID_Main_CbShowPlayer;

ACV_ShowPlayer = !ACV_ShowPlayer;

_show = if !(ACV_ShowPlayer) then {false;} else {true;};
[_show] spawn R3F_FNCT_Marker_Player;

if (ACV_ShowPlayer) then {
	_btn_show ctrlSetText "--";
	_btn_show ctrlSetTooltip localize "STR_TOOLTIP_HIDEPLAYER";
} else {
	_btn_show ctrlSetText Localize "STR_ACV_BTN_LOOK_PLAYER";
	_btn_show ctrlSetTooltip localize "STR_TOOLTIP_SHOWPLAYER";
};
